<?php

namespace app\home\validate;

use think\Validate;

class UrlGroup extends Validate {
    
    /**
     * 规则定义
     * @var array
     */
    protected $rule = [
        'groupName'     => 'require|length:2,50',
    ];
    
    /**
     * 提示信息定义
     * @var array
     */
    protected $message = [
        'groupName'     => '请输入2-50位渠道名称',
    ];
    
    /**
     * 场景定义
     * @var array
     */
    public $scene = [
        'operateAjax' => ['groupName'],
    ];
}